/**
 * 数组数据生成
 * @param {import('mockjs')} Mock
 * @param {object} data
 * @param {number} data.pageNum
 * @param {number} data.pageSize
 */
export function generateResponseList(Mock, data) {
  const total = Mock.Random.integer(1, 99)

  return {
    current: data.pageNum,
    pageSize: data.pageSize,
    pages: Math.ceil(total / data.pageSize),
    total
  }
}
